/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tasquesprogramacio;

/**
 *
 * @author alumne1daw
 */
import java.util.Scanner;
public class NumeroMesPetit {
    public static void main(String[] args){
        int [] n = new int[10];
        int aux = 0;
        int numero = 0;
	int comentari_igual = 0;
        System.out.println("Insereix 10 numeros a l'atzar");
        Scanner lector = new Scanner(System.in);
        for(int i = 0; i < n.length; i++){
            n[i] = lector.nextInt();
        }
        for(int i = 0; i < 10; i++){
            if(n[0] > n[i]){
                n[0] = n[i];
            }
        }
        System.out.println("El numero més petit és: " + n[0]);
    }
}
